package com.tz.spring.sysmanage.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.tz.spring.sysmanage.entity.Student;
import com.tz.spring.sysmanage.service.IStudentService;

/**
 * 用于对外提供学生服务类的增删改查实现
 * @author Administrator
 *
 */
public class StudentService implements IStudentService{

	 
	@Override
	public boolean addStudent(Student student) {
		//System.out.println("进行权限验证");
		
		System.out.println("执行增加功能");
		
		//System.out.println("进行日志记录");
		return true;
 	}

	@Override
	public boolean delStudent(Integer studentId) {
		//System.out.println("进行权限验证");
		int i = 1/0;
		System.out.println("执行删除功能");
		//System.out.println("进行日志记录");

		return true;

 	}

	@Override
	public boolean updateStudent(Student student) {
		//System.out.println("进行权限验证");
		System.out.println("执行修改功能");
		//System.out.println("进行日志记录");

		return true;

 	}

	@Override
	public List<Student> getStudentList() {
		//System.out.println("进行权限验证");
		System.out.println("执行查询功能");
		//System.out.println("进行日志记录");
		return new ArrayList<Student>();

 	}

	 
	
 
}
